package com.mti.monitor.bean.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_monitor_data_source")
@ApiModel(description = "数据源配置")
public class SysDataSourceConfig {

    @TableId
    @TableField("data_source_id")
    @ApiModelProperty(value = "id")
    private String dataSourceId;

    @TableField("data_source_name")
    @ApiModelProperty(value = "数据源名称")
    private String dataSourceName;

    @TableField("db_url")
    @ApiModelProperty(value = "数据源URL")
    private String dbUrl;

    @TableField("user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @TableField("password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField("drive_class_name")
    @ApiModelProperty(value = "驱动名")
    private String driveClassName;

    @TableField("delete_yn")
    @ApiModelProperty(value = "删除标记")
    private boolean deleteYn;


    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;
}
